 /***
 * 字符串去掉空格
 * @memberOf {TypeName} 
 * @return {TypeName} 
 */
String.prototype.Trim=function(){
return this.replace(/(^\s*)|(\s*$)/g,"");
}

/**
 * 按输入页数跳转
 */
function goPage_v(p){
	//var p = $("#pageNum").val();
	var patrn=/^[0-9]{1,20}$/; 
	if (!patrn.exec(p)){
		$("#pageNum").val("");
		$("#pageNum").blur();
		alert("请输入合法的页数！");
		return false;
	}else{
		if(0<parseInt(p) && parseInt(p)<=totalPageNum){
			//getCompanyList(p);
			return true;
		}else{
			$("#pageNum").val("");
			$("#pageNum").blur();
			alert("请输入合法的页数！");
			return false;
		}
	}
}

/**
 * 创建分页层
 */
function createPageTab(){
	var htmlStr = '<table id="pageTab" width="100%" border="0" cellspacing="0" cellpadding="0"><tr>';
	htmlStr += '<td width="25%" height="29" nowrap="nowrap">';
	htmlStr += '<span id="pageInfo" class="STYLE1"></span></td>';
	htmlStr += '<td width="75%" valign="top" class="STYLE1"><div align="right">';
	htmlStr += '<table width="352" height="20" border="0" cellpadding="0" cellspacing="0"><tr>';
	//第一页
	htmlStr += '<td width="62" height="22" valign="middle"><div id="onePage" align="right">';
	htmlStr += '<img src="'+root+'/admin/company/images/first.gif" width="37" height="15" />';
	htmlStr += '</div></td>';
	//上一页
	htmlStr += '<td width="50" height="22" valign="middle"><div id="perPage" align="right">';
	htmlStr += '<img src="'+root+'/admin/company/images/back.gif" width="43" height="15" />';
	htmlStr += '</div></td>';
	//下一页
	htmlStr += '<td width="54" height="22" valign="middle"><div id="nextPage" align="right">';
	htmlStr += '<img src="'+root+'/admin/company/images/next.gif" width="43" height="15" />';
	htmlStr += '</div></td>';
	//尾页
	htmlStr += '<td width="49" height="22" valign="middle"><div id="lastPage" align="right">';
	htmlStr += '<img src="'+root+'/admin/company/images/last.gif" width="37" height="15" />';
	htmlStr += '</div></td>';
	
	htmlStr += '<td width="59" height="22" valign="middle"><div align="right">转到第</div></td>';
	htmlStr += '<td width="25" height="22" valign="middle"><span class="STYLE7">';
	htmlStr += '<input id="pageNum" type="text" class="STYLE1" style="height:10px; width:25px;" size="5" />';
	htmlStr += '</span></td><td width="23" height="22" valign="middle">页</td>';
	htmlStr += '<td width="30" height="22" valign="middle">';
	htmlStr += '<img src="'+root+'/admin/company/images/go.gif" width="37" height="15" onclick="goPage()" /></td>';
	htmlStr += '</tr></table></div></td></tr></table>';
	$("#pageTd").html(htmlStr);
}

/**
 * 创建系统页面的表头层
 */
function createListTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="6%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="15%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">名称</div></td>';
	htmlStr += '<td width="33%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">简介</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">查看门店</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建品牌页面的表头层
 */
function createBrandListTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="6%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="15%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">名称</div></td>';
	htmlStr += '<td width="33%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">描述</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">查看商品</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建任务页面的表头层
 */
function createTaskListTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="6%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="33%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">描述</div></td>';
	htmlStr += '<td width="13%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="13%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">开始时间</div></td>';
	htmlStr += '<td width="13%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">结束时间</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建职位页面表头
 */
function createPositionListTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="6%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="26%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">职位名</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">职员</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建门店页面表头层
 */
function createSuperMarketListTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="6%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="15%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">名称</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">电话</div></td>';
	htmlStr += '<td width="33%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">地址</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建商品表头层
 */
function createProductListTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">名称</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">品牌</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">条形码</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">箱规</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">品类</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建活动表头层
 */
function createActivityListTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">主题</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">品牌</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">内容</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">开始时间</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">结束时间</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">活动门店</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">生动化</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建活动表头层
 */
function createActivityMarketListTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">活动主题</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">活动品牌</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">活动内容</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">活动门店</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">计划海报</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">计划堆头</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">计划头套</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">计划端架</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">计划陈列</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">海报</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">堆头</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">头套</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">端架</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">陈列</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建市场分析表头层
 */
function createMarketAnalysisListTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">系统</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">门店</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">品牌</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">商品</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">预售价</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">售价</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">目标陈列</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">陈列</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">目标促销活动</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">促销活动</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">目标海报</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">海报</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">目标堆头</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">堆头</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">目标专柜</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">专柜</div></td>';
	htmlStr += '<td width="6%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">拜访时间</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建活动表头层
 */
function createSellerAssessListTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">促销员</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">工号</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">职位</div></td>';
	htmlStr += '<td width="12%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">任务</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">仪表</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">考勤</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">产品知识</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">销售技巧</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">考核时间</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建任务图片表头层
 */
function createTaskImgTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="24%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">任务</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">品牌</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">门店</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">图片</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建商品表头层
 */
function createMarketProductListTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="16%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">商品名</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">公司名</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">店名</div></td>';
	htmlStr += '<td width="12%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">店内码</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">价格(￥)</div></td>';
	htmlStr += '<td width="17%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	
	//htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	//htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建销售员表头层
 */
function createSellerListTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">姓名</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">工号</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">职位</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">所属门店</div></td>';
	htmlStr += '<td width="6%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">仪表</div></td>';
	htmlStr += '<td width="6%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">考勤</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">产品知识</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">销售技巧</div></td>';
	htmlStr += '<td width="12%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建业务员页面的表头层
 */
function createEmployeeTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="6%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="33%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">用户名</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">职位</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">上级</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建任务指派页面的表头层
 */
function createTaskPETab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="16%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">任务</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">业务员</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">门店</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">品牌</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">商品</div></td>';
	htmlStr += '<td width="6%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">计划分销</div></td>';
	htmlStr += '<td width="6%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">计划陈列</div></td>';
	htmlStr += '<td width="6%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">计划堆头</div></td>';
	htmlStr += '<td width="12%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">计划库存</div></td>';
	//htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	//htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建任务指派页面的表头层
 */
function createChangGuiTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="12%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">任务</div></td>';
	htmlStr += '<td width="8%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">业务员</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">门店</div></td>';
	htmlStr += '<td width="9%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">品牌</div></td>';
	htmlStr += '<td width="9%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">商品</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">分销</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">库存</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">价格</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">陈列</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建任务指派页面的表头层
 */
function createHelpSaleTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="12%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">任务</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">业务员</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">门店</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">品牌</div></td>';
	htmlStr += '<td width="9%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">商品</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">分销</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">库存</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">价格</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">陈列</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">堆头</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">海报</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">专柜</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">助销</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建活动图片页面的表头层
 */
function createActivityImgTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">名称</div></td>';
	htmlStr += '<td width="20%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">活动内容</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">门店</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">图片类型</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">图片</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="7%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 创建任务品牌页面的表头层
 */
function createTaskBrandTab(){
	$("#listInfoTd").html("");
	var htmlStr = '<table id="listInfoTab" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()"><tr>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">选择</div></td>';
	htmlStr += '<td width="4%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">序号</div></td>';
	htmlStr += '<td width="20%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">任务</div></td>';
	htmlStr += '<td width="10%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">品牌</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">开始时间</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">结束时间</div></td>';
	htmlStr += '<td width="14%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">创建时间</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">编辑</div></td>';
	htmlStr += '<td width="5%" height="26" background="'+root+'/admin/company/images/tab_14.gif" class="STYLE1">';
	htmlStr += '<div align="center" class="STYLE2 STYLE1">删除</div></td></tr></table>';
	$("#listInfoTd").html(htmlStr);
}

/**
 * 读取所有品牌,将品牌信息set进select
 */
function readyAllBrand(brandDiv,productDiv){
	var tmp2=root+"/admin/brand!getBrandAll";
	$.ajax({
		url: tmp2,
		type: "POST",
		async:false,
		data:{},
		dataType:"json",
		success: function(json){
			var htmlStr = '';
			for(var i=0; i<json.length; i++){
				htmlStr += '<option value="'+json[i].id+'">'+json[i].name+'</option>';
			}
			if($("#"+brandDiv).html()=='<option value="">--</option>'){
				$("#"+brandDiv).append(htmlStr);
			}else{
				$("#"+brandDiv).html(htmlStr);
			}
			if(productDiv!=null){
				$("#"+brandDiv).change(function(){readyAllProduct(brandDiv, productDiv);});
			}
		}
	});
}

/**
 * 取出某个品牌所有商品
 * @param {} brandDiv
 * @param {} productDiv
 */
function readyAllProduct(brandDiv, productDiv){
	if($("#"+brandDiv).val()=="" || $("#"+brandDiv).val()==null){
		$("#"+productDiv).html('<option value="">--</option>');
		return;
	}
	var tmp2=root+"/admin/product!getAllProductByBrand";
	$.ajax({
		url: tmp2,
		type: "POST",
		async:false,
		data:{"brand.id": $("#"+brandDiv).val()},
		dataType:"json",
		success: function(json){
			var htmlStr = '<option value="">--</option>';
			for(var i=0; i<json.length; i++){
				htmlStr += '<option value="'+json[i].id+'">'+json[i].name+'</option>';
			}
			$("#"+productDiv).html(htmlStr);
		}
	});
}

/**
 * 读取所有公司
 */
function readyAllCompany(cSelectId, mpSelectId){
	var tmp2=root+"/admin/company!getCompanyAll";
	$.ajax({
		url: tmp2,
		type: "POST",
		async:false,
		data:{},
		dataType:"json",
		success: function(json){
			var htmlStr = '';
			for(var i=0; i<json.length; i++){
				htmlStr += '<option value="'+json[i].id+'">'+json[i].name+'</option>';
			}
			if($("#"+cSelectId).html()=='<option value="">--</option>'){
				$("#"+cSelectId).append(htmlStr);
			}else{
				$("#"+cSelectId).html(htmlStr);
			}
			$("#"+cSelectId).change(function(){readyAllMarket(cSelectId,mpSelectId);});
		}
	});
}

/**
 * 读取某个公司的所有门店
 */
function readyAllMarket(cSelectId, marketSelectId){
	if($("#"+cSelectId).val()=="" || $("#"+cSelectId).val()==null){
		$("#"+marketSelectId).html('<option value="">--</option>');
		return;
	}
	var tmp2=root+"/admin/super-market!getAllMarketByCid";
	$.ajax({
		url: tmp2,
		type: "POST",
		async:false,
		data:{"company.id": $("#"+cSelectId).val()},
		dataType:"json",
		success: function(json){
			var htmlStr = '';
			for(var i=0; i<json.length; i++){
				htmlStr += '<option value="'+json[i].id+'">'+json[i].name+'</option>';
			}
			$("#"+marketSelectId).html(htmlStr);
		}
	});
}

/**
 * 对比新旧密码是否相同
 * @param {Object} newStr
 * @param {Object} oldStr
 */
function identicalStr(newStr, oldStr){
	return newStr==oldStr?true:false;
}

function checkedBox(boxName){
	if($("#ck").attr("checked")){
		$("input[name='checkbox']").attr("checked","true"); 
	}else{
		$("input[name='checkbox']").removeAttr("checked"); 
	}
}

function getCheckBoxVal(){
	var ids = "";
	$("input[name='checkbox']:checkbox:checked").each(function(){ 
		if($(this).attr("checked")){
			ids += $(this).val()+",";
		}
	});
	return ids;
}